package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ParenthesizedJoinedTableTablePrimary implements TablePrimary {

    private int beginIndex;
    private int endIndex;
    private JoinedTable joinedTable;

    public ParenthesizedJoinedTableTablePrimary(int beginIndex,
                                                int endIndex,
                                                JoinedTable joinedTable) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.joinedTable = joinedTable;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public JoinedTable getJoinedTable() {
        return joinedTable;
    }

}
